import { request } from '@umijs/max';

// 获取当前用户
export const queryCurrentUser = (params: { appId: string }) => {
  return request<{ data: API.CurrentUser }>('/treadstone/api/users/user/current', { method: 'GET', params });
};

// 退出登录
export async function accountLogout() {
  return request('/treadstone/api/users/user/logout/', { method: 'POST' });
}
